﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Newtonsoft.Json.Linq;
using xbmc_json_async.System;

namespace xbmc_json_async.Media
{
    public class MovieSetExtended : xbmc_json_async.Types.Video.Details.MovieSetExtended
    {
        public MovieSetExtended() { }

        public static MovieSetExtended FromJsonObject(JObject item)
        {
            var setExtended = new MovieSetExtended();
            setExtended.fanart = XHelpers.Jval(item, "fanart");
            setExtended.label = XHelpers.Jval(item, "label");
            
            setExtended.playcount = XHelpers.JvalInt(item, "playcount");
            setExtended.setid = XHelpers.JvalInt(item, "setid");
            setExtended.thumbnail = XHelpers.Jval(item, "thumbnail");
            setExtended.title = XHelpers.Jval(item, "title");

            //create the movie list here
            return setExtended;


        }
    }
}
